simplify by prime factorization the square root of a prime number